package com.ibeetl.admin.api.entity;

import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import lombok.Data;
import org.beetl.sql.annotation.entity.AutoID;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class Travel_user extends BaseEntity {
    @NotNull(message = "ID不能为空", groups = ValidateConfig. UPDATE.class)
    @AutoID
    private long userId;
    //用户类型：9=游客，0=普通用户，1=导游
    @NotBlank(message = "用户类型不能为空", groups = ValidateConfig.ADD.class)
    @Null(message = "用户类型不能为空", groups = ValidateConfig.UPDATE.class)
    private int userType;
    //手机号码
    // 登录名，编号
    @NotBlank(message = "手机号码不能为空", groups = ValidateConfig.ADD.class)
    @Null(message = "手机号码不能为空", groups = ValidateConfig.UPDATE.class)
    private String phone;
    //短信验证码
    private String smsCode;
    //前后端通信凭证
    private String token;
    //记住7天
    private boolean rememberMeExpiration;
    //注册时间
    private Date registerDt;

    //用户ID：六位起步：100000
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    //用户姓名

    private String userName ;

    //用户头像

    private String userAvatar ;

    //登录密码

    private String password ;

    //用户是否删除：0有效，1用户注销

    private Integer isDelete ;

    //微信openid

    private String wechatOpenId ;

    //微信用户union id

    private String wechatUnionId ;

    //昵称

    private String nickname ;

    //注册地址：根据手机自动获取当前地址

    private String registerAddress ;

    //会员等级:青铜、白银、黄金、砖石、王者

    private String level ;

    //用户当前积分

    private Integer integral ;

    //用户总获得积分

    private Integer totalIntegral ;

    //余额

    private BigDecimal money ;

    //联系地址

    private String contactWay ;

    //备注

    private String comments ;

    //授权手机号

    private String authPhoneNumber ;

    //微信公众号openid

    private String wechatPlatformOpenId ;

    //小程序平台 0 => 微信, 1 => 支付宝

    private Integer platform ;

    //黑名单 0.否 | 1.是

    private Integer blacklist ;




}
